package com.wenlin.myproduction.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author 文琳
 * @Email 377979485@qq.com
 * @desc
 * @time 2022-12-20 星期二 19:09
 */
public class GuessNumberBean implements Parcelable {
    private int times;//次数
    private String answer;
    private int totalHas;
    private int totalCorrect;

    public GuessNumberBean(int times, String answer, int totalHas, int totalCorrect) {
        this.times = times;
        this.answer = answer;
        this.totalHas = totalHas;
        this.totalCorrect = totalCorrect;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public int getTotalHas() {
        return totalHas;
    }

    public void setTotalHas(int totalHas) {
        this.totalHas = totalHas;
    }

    public int getTotalCorrect() {
        return totalCorrect;
    }

    public void setTotalCorrect(int totalCorrect) {
        this.totalCorrect = totalCorrect;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.times);
        dest.writeString(this.answer);
        dest.writeInt(this.totalHas);
        dest.writeInt(this.totalCorrect);
    }

    protected GuessNumberBean(Parcel in) {
        this.times = in.readInt();
        this.answer = in.readString();
        this.totalHas = in.readInt();
        this.totalCorrect = in.readInt();
    }

    public static final Parcelable.Creator<GuessNumberBean> CREATOR = new Parcelable.Creator<GuessNumberBean>() {
        @Override
        public GuessNumberBean createFromParcel(Parcel source) {
            return new GuessNumberBean(source);
        }

        @Override
        public GuessNumberBean[] newArray(int size) {
            return new GuessNumberBean[size];
        }
    };
}
